<template>
  <input type="text" v-focus @input="input" />
</template>

<script>
export default {
  props: ["modelValue"],
  emits: ["update:modelValue"],
  setup(props, { emit }) {
    console.log(props);
    const input = function (e) {
      emit("update:modelValue", e.target.valu);
    };
    return {
      input,
    };
  },
};
</script>

<style></style>
